package com.example.children.Model;

import java.io.Serializable;
import java.util.Map;

public class ResponseModel<T> implements Serializable {
    Integer code;
    Map<String,String> token;
    String msg;
    T date;



    public T getDate() {
        return date;
    }

    public void setDate(T date) {
        this.date = date;
    }

    public ResponseModel(Integer code, String msg, Map<String,String> token){
        this.code=code;
        this.msg=msg;
        this.token=token;
    }

    public ResponseModel(T date,Integer code,String msg,Map<String,String> token){
        this.date=date;
        this.code=code;
        this.msg=msg;
        this.token=token;
    }



    public ResponseModel(Integer code,String msg,T date){
        this.code=code;
        this.msg=msg;
        this.date=date;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Map<String,String> getToken() {
        return token;
    }

    public void setToken(Map<String,String> token) {
        this.token = token;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
